﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using SGRapidForm.Common;

namespace SGRapidForm.Permission.Entity
{
    [DataContract]
    public class UserRole : EntityBase
    {
        #region Model
        private string _userkeyid = string.Empty;
        private string _username = string.Empty;
        private string _rolekeyid = string.Empty;
        private string _rolecode = string.Empty;
        
         
        [DataMember]
        public string UserKeyid
        {
            set { _userkeyid = value; }
            get { return _userkeyid; }
        }
        
         
        [DataMember]
        public string UserName
        {
            set { _username = value; }
            get { return _username; }
        }
        
         
        [DataMember]
        public string RoleKeyid
        {
            set { _rolekeyid = value; }
            get { return _rolekeyid; }
        }
        
         
        [DataMember]
        public string RoleCode
        {
            set { _rolecode = value; }
            get { return _rolecode; }
        }
        #endregion Model

        public UserRole()
        { }

        public UserRole(string userKeyid, string userName, string roleKeyid, string roleCode)
        {
            this.UserKeyid = userKeyid;
            this.UserName = userName;
            this.RoleKeyid = roleKeyid;
            this.RoleCode = roleCode;
        }
    }
}
